package br.mikhas.task.application;

public class ApplicationRuntimeException extends RuntimeException {

	private static final long serialVersionUID = 4224512564975750494L;

	public ApplicationRuntimeException() {
		super();
	}

	public ApplicationRuntimeException(String message) {
		super(message);
	}

	public ApplicationRuntimeException(Throwable cause) {
		super(cause);
	}

	public ApplicationRuntimeException(String message, Throwable cause) {
		super(message, cause);
	}

	@Override
	public String toString() {
		String string = super.toString();
		Throwable cause = this.getCause();

		if (cause != null) {
			string += ", caused by: " + cause.toString();
		}
		return string;
	}

}
